﻿@page
@using Microsoft.AspNetCore.Authorization
@attribute [AllowAnonymous]
@model IndexModel

@{
    ViewData["Title"] = "Home page";
    ViewData["HideTitle"] = true;
}

<div class="flex gap-6 flex-col mt-16 min-h-full">
    <div class="flex justify-center flex-col">
        <h1 class="text-4xl font-bold tracking-tight text-gray-900 sm:text-6xl">Admin Console</h1>
        <h2 class="text-xl font-bold tracking-tight text-gray-600 sm:text-1xl">Passwordless.dev</h2>
    </div>
    <div class="mt-8 sm:w-full sm:max-w-md">
        <div class="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
            <form asp-page="account/signin" class="space-y-6" method="POST">
                <div>
                    <label for="email" class="block text-sm font-medium leading-6 text-gray-900">Email address</label>
                    <div class="mt-2">
                        <input id="email" name="email" type="email" autocomplete="webauthn" required class="block w-full p-2 rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-primary-500 sm:text-sm sm:leading-6">
                    </div>
                </div>
                <button type="submit" class="flex w-full justify-center rounded-md bg-primary-500 py-2 px-3 text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-500">Sign in</button>
            </form>
        </div>
    </div>
</div>
